<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>HTML元素嵌套</title>
</head>
<body>
  <div>
    <a href="#"> div &gt; a </a>
  </div>
  <a href="#">
    <div> a &gt; div </div>
  </a>
  <p>
    <a href="#">
      <div>p &gt; a &gt; div</div>
    </a>
  </p>
</body>
</html>
